package com.java.forum.b_mapper;

import com.java.forum.a_entity.Collection;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface CollectionMapper {
    Integer InsertCollection(Collection collection);

    Integer DeleteCollection(Collection collection);

    Collection IsCollected(int pid, int uid);

    /**
     * 根据帖子id获取评论列表
     *
     * @param uid 用户id
     * @return 收藏列表
     */
    List<Collection> getCollectionByUid(int uid);
}
